/**
 * Created by Administrator on 2017-04-07.
 */
export default {
  setBxId ({ commit, state }, id) {
    commit('SET_BX_ID', {id})
  },
  setTotalPrice ({ commit, state }, price) {
    commit('SET_TOTAL_PRICE', {price})
  },
  setTotalCount ({ commit, state }, count) {
    commit('SET_TOTAL_COUNT', {count})
  },
  clearSelectFoods ({ commit }) {
    commit('CLEAR_SELECT_FOODS')
  },
  // 分发action的示例 this.$store.dispatch('addNum',this.choosedId)
  addSelectFoods ({ commit, state }, food) {
    commit('ADD_SELECT_FOODS', {food})
  },
  setGoods ({ commit, state }, goods) {
    commit('SET_GOODS', {goods})
  },
  setFlag ({ commit }) {
    commit('SET_FLAG')
  }
}
